package com.lichuang.dedao.curriculum.mapper;

import com.lichuang.dedao.curriculum.entity.CurriculumSection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author xiaosong
 * @since 2019-07-18
 */
@Repository
public interface CurriculumSectionMapper extends BaseMapper<CurriculumSection> {

    /**
     * 通过章id查课程节
     * @param chapterId
     * @return
     */
    List<CurriculumSection> getSectionByChapterId(@Param("chapterId")Integer chapterId);

}
